package com.authorization.project.authorization.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.authorization.framework.aspectj.lang.annotation.Excel;
import com.authorization.framework.web.domain.BaseEntity;

import java.util.List;

/**
 * 微服务对象 microservice
 * 
 * @author 李晓雷
 * @date 2020-04-24
 */
public class Microservice extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 微服务名称 */
    @Excel(name = "微服务名称")
    private String servicename;

    /** 微服务中文名 */
    @Excel(name = "微服务中文名")
    private String servicenamecn;

    /** 产品主键 */
    @Excel(name = "产品主键")
    private Long productId;

    /** 产品名称*/
    private String productName;

    /** 排序*/
    private String sort;

    /**是否基本模块**/
    private String baseState;

    /**关联服务ID集合**/
    private List<Long> relationIdsList;

    /**当前服务ID**/
    private Long currentServiceId;

    /**新关联服务服务ID**/
    private Long newRelationId;

    public Long getCurrentServiceId() {
        return currentServiceId;
    }

    public void setCurrentServiceId(Long currentServiceId) {
        this.currentServiceId = currentServiceId;
    }

    public Long getNewRelationId() {
        return newRelationId;
    }

    public void setNewRelationId(Long newRelationId) {
        this.newRelationId = newRelationId;
    }

    public List<Long> getRelationIdsList() {
        return relationIdsList;
    }

    public void setRelationIdsList(List<Long> relationIdsList) {
        this.relationIdsList = relationIdsList;
    }

    public String getBaseState() {
        return baseState;
    }

    public void setBaseState(String baseState) {
        this.baseState = baseState;
    }

    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setServicename(String servicename) 
    {
        this.servicename = servicename;
    }

    public String getServicename() 
    {
        return servicename;
    }
    public void setServicenamecn(String servicenamecn) 
    {
        this.servicenamecn = servicenamecn;
    }

    public String getServicenamecn() 
    {
        return servicenamecn;
    }
    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("servicename", getServicename())
            .append("servicenamecn", getServicenamecn())
            .append("productId", getProductId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
